package com.tengju.user.domain.model.csa;

import com.alibaba.fastjson.JSONArray;
import com.tengju.user.domain.model.user.UserIdCode;

import java.time.LocalDateTime;

public interface GenSecCustomerServiceInfoRepository {

    /**
     * 通过俱乐部id获取客服信息
     *
     * @param secIdCode
     * @return
     */
    ClubCustomerServiceInfo getBySecIdCode(UserIdCode secIdCode);

    /**
     * 更新客服信息
     *
     * @param secIdCode
     * @param csaName
     * @param csaWechat
     */
    int updateCustomerServiceInfo(UserIdCode secIdCode, String csaName, String csaWechat,
                                  String headImage, Integer workDateType, LocalDateTime startWorkTime,
                                  LocalDateTime endWorkTime, JSONArray customerServiceGreetJson);

    long addCustomerServiceInfo(UserIdCode secIdCode, String csaName, String csaWechat,
                                String headImage, Integer workDateType, LocalDateTime startWorkTime,
                                LocalDateTime endWorkTime, JSONArray customerServiceGreetJson);

    void clearCustomerServiceInfo(UserIdCode secIdCode);

}
